/* 整个游戏的样式 */

#game {
  width: 800px;
  height: 600px;
  border: 2px solid;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* 设置游戏背景图样式 */

#game .sky {
  width: 1600px;
  height: 600px;
  background: url("../img/sky.png");
  position: absolute;
  left: 0;
  top: 0;
}

/* 游戏大地的样式 */

#game .land {
  width: 1600px;
  height: 112px;
  background: url("../img/land.png");
  position: absolute;
  left: 0;
  bottom: 0;
}

/* 游戏提示的样式 */

.msg {
  text-align: center;
}

/* 水管的样式 */

#game .pipeup {
  background: url("../img/pipeDown.png") no-repeat left bottom;
  width: 52px;
  height: 200px;
  position: absolute;
  top: 0;
  right: 0;
}

#game .pipedown {
  background: url("../img/pipeUp.png") no-repeat;
  width: 52px;
  height: 200px;
  position: absolute;
  bottom: 112px;
  right: 0;
}

/* 小鸟的样式 */

#game .bird {
  width: 33px;
  height: 26px;
  background: url("../img/bird.png");
  position: absolute;
  left: 200px;
  top: 150px;
  background-position: -113px -10px;
  z-index: 1;
}

/* 计分的容器样式 */

#game .score {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 4em;
  text-align: center;
  line-height: 600px;
  z-index: 2;
}

/* 游戏总分样式 */

#game .over {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 4em;
  text-align: center;
  line-height: 600px;
  z-index: 2;
  display: none;
}
